package com.nlx.notes.configuer.thread;

import lombok.Getter;
import org.springframework.stereotype.Component;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

@Component
public class ScheduledThreadConfig {

    private static final int CORE_POOL_SIZE = 5;

    @Getter
    private static final ScheduledExecutorService SCHEDULER = Executors.newScheduledThreadPool(CORE_POOL_SIZE);

}
